#pragma once
#include "PAKWriter.h"
#include "DeclarationManager.h"

namespace ds {

class SoundDecl : public ResourceDeclaration {

public:
	//SoundDecl() : ResourceDeclaration() {}
	SoundDecl(const std::string& name) : ResourceDeclaration(name) , m_Name(name) {}
	virtual ~SoundDecl() {}
	void parseCategory(Category* category) {}
	DeclarationType getType() const {
		return DT_SOUND;
	}	
	std::string& getName() {
		return m_Name;
	}
private:
	std::string m_Name;
};

class SoundParser : public DeclarationParser {

public:
	SoundParser() {}
	virtual ~SoundParser() {}
	ResourceDeclaration* loadTextFile(const ResourceFile& resourceFile);
	void loadTextFile(const ResourceFile& resourceFile,DeclarationManager* declarationManager) {}
	void createResource(ResourceDeclaration* declaration);
	DeclarationType getType() const {
		return DT_SOUND;
	}
	bool isSupported(const std::string& fileEnding) const;
	bool isReloadable() const {
		return false;
	}	
};

}

